﻿@using Cnm.Models.Admins
@using Cnm.Mvc.Web.Framework
@model Cnm.Models.Admins.ProductModel

@(Html.LocalizedEditor<ProductModel, ProductLocalizedModel>("product-info-localized",
    @<table class="adminContent">
        <tr>
            <td class="adminTitle">
                @Html.LabelFor(model => model.Locales[item].Name):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.Locales[item].Name)
                @Html.ValidationMessageFor(model => model.Locales[item].Name)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.LabelFor(model => model.Locales[item].ShortDescription):
            </td>
            <td class="adminData">
                @Html.TextAreaFor(model => model.Locales[item].ShortDescription, new { style = "Width: 250px; Height: 150px;", @class = "ckeditor" })
                @Html.ValidationMessageFor(model => model.Locales[item].ShortDescription)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.LabelFor(model => model.Locales[item].FullDescription):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.Locales[item].FullDescription, new { @class = "ckeditor" })
                @Html.ValidationMessageFor(model => model.Locales[item].FullDescription)
            </td>
        </tr>
        <tr>
            <td colspan="2">
                @Html.HiddenFor(model => model.Locales[item].LanguageId)
            </td>
        </tr>
    </table>
                ,
                @<table class="adminContent">
                    <tr>
                        <td class="adminTitle">
                            @Html.LabelFor(model => model.Name):
                        </td>
                        <td class="adminData">
                            @Html.EditorFor(model => model.Name)
                            @Html.ValidationMessageFor(model => model.Name)
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitle">
                            @Html.LabelFor(model => model.ShortDescription):
                        </td>
                        <td class="adminData">
                            @Html.TextAreaFor(x => x.ShortDescription, new { style = "Width: 250px; Height: 150px;", @class = "ckeditor" })
                            @Html.ValidationMessageFor(model => model.ShortDescription)
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitle">
                            @Html.LabelFor(model => model.FullDescription):
                        </td>
                        <td class="adminData">
                            @Html.EditorFor(x => x.FullDescription)
                            @Html.ValidationMessageFor(model => model.FullDescription)
                        </td>
                    </tr>
                </table>
                                          ))